package org.example.util5;

import java.time.LocalDate;

public class Employee{
    private String name;
    private Double salary;
    private LocalDate hireDay;

    public LocalDate getHireDay() {
        return hireDay;
    }

    public String getName() {
        return name;
    }

    public Employee(String name, Double salary,int year,int month,int day) {
        this.name = name;
        this.salary = salary;
        hireDay = LocalDate.of(year, month, day);
    }

    public Double getSalary() {
        return salary;
    }

    public void raiseSalary(Double byPercent) {
        double raise = salary * byPercent / 100;
        salary += raise;
    }
}
